<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app1"></div>
    <div id="app2"></div>
    <div id="app3"></div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
    <script>
        //Vue.extend是一个类上的方法，可以用于创建一个Vue的子类，参数是一个选项对象
/*         Vue.extend = (options)=>{

        } */
        const ExtendedVue = Vue.extend({
            template:'<div>{{count}}</div>'
        });
        var vm1 = new ExtendedVue({
            el:'#app1',
            data:{count:1},
        });
        var vm2 = new ExtendedVue({
            el:'#app2',
            data:{count:2},
        });
        var vm3 = new ExtendedVue({
            el:'#app3',
            data:{count:3},
        });
    </script>
</body>
</html>